chapter 3 stack